import styled from 'styled-components'

export const Container = styled.div`
    display: flex;
    .left{
        flex: 1;
        margin-right: 24px;
        .user{
            display: flex;
            flex-direction: column;
            align-items: center;
            .username{
                font-size: 20px;
                color: rgba(0, 0, 0, 0.85);
                margin: 16px 0 4px;
            }
            .desc{
                font-size: 14px;
                color: rgba(0, 0, 0, 0.65);
            }
            .msg-content{
                width: 100%;
                padding: 0 12%;
                display: flex;
                flex-direction: column;
                a{
                    color: rgba(0, 0, 0, 0.65);
                    &:hover{
                        text-decoration: underline;
                    }
                }
            }
            .tag-group{
                width: 100%;
            }
        }
    }
    .right{
        flex: 2.5;
    }
`

export const ProjectItem = styled.div`
    height: 100px;
    .top{
        display: flex;
        align-items: center;
        padding-bottom: 8px;
        &:hover{
            cursor: pointer;
        }
        .avatar{
            width: 28px;
            height: 28px;
            border-radius: 50%;
            font-weight: bold;
            font-size: 14px;
            line-height: 28px;
            color: white;
        }
        span{
            flex: 1;
            width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: rgba(0,0,0,.85);
            font-size: 14px;
            margin-left: 12px;
            font-weight: bold;
            text-align: left;
        }
    }
    .desc{
        &:hover{
            cursor: pointer;
        }
        text-align: left;
        line-height: 22px;
        height: 44px;
        overflow: hidden;
    }
    .footer{
        text-align: right;
        margin: 8px 0;
        span{
            font-size: 14px;
            margin-right: 16px;
        }
    }
`